﻿using Iworld.Game.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Iworld.Game.Service.Client.Export
{
    /// <summary>
    /// 牌局信息输出
    /// </summary>
   [DataContract]
    public class GameRoundExport
    {

       public GameRoundExport(GameRound round)
       {
           this.RoundNum = round.RoundNum;
           this.PokerColor = round.PokerColor;
           this.PokerNumber = round.PokerNumber;
           this.IsLottery = round.IsLottery;
           this.LotteryTime = round.LotteryTime;
       }

        /// <summary>
        /// 局号
        /// </summary>
       [DataMember]
       public int RoundNum { set; get; }

        /// <summary>
        /// 开出的花色
       /// </summary>
       [DataMember]
        public PokerColor PokerColor { set; get; }

        /// <summary>
        /// 开出的数字
       /// </summary>
       [DataMember]
        public PokerNumber PokerNumber { set; get; }

        /// <summary>
        /// 是否开奖
       /// </summary>
       [DataMember]
        public bool IsLottery { set; get; }

        /// <summary>
        /// 实际开奖的时间
       /// </summary>
       [DataMember]
        public DateTime? LotteryTime { get; set; }

     
    }
}
